
import Vue from 'vue'// ---------------------------------挂载vue
import 'normalize.css/normalize.css' // -----------------引入样式
import ElementUI from 'element-ui'// --------------------挂载ElementUI
import 'element-ui/lib/theme-chalk/index.css'// ---------ElementUI样式

import '@/styles/index.scss' // --------------------------全局css样式
import App from './App'// --------------------------------引入app组件
import store from './store'// ----------------------------引入vuex-store仓库
import router from './router'// --------------------------引入路由

import '@/icons' // --------------------------------------icon
import '@/permission' // ---------------------------------配置权限,例如路由守卫
import directive from './directive'
import i18n from '@/lang' // ------------------------------导入多语言插件
// 导入全局挂载的组件
import Components from './components'
Vue.use(Components)
Vue.use(ElementUI)
Vue.use(directive)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  directive,
  render: h => h(App)
})
